package com.gqqx.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gqqx.user.pojo.Weather;
import com.gqqx.user.pojo.vo.WeatherHourVo;
import com.gqqx.user.pojo.vo.WeatherVo;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

public interface WeatherMapper extends BaseMapper<Weather> {
    ////返回气象编号和名称
    @MapKey("station")
    List<Map<Integer, String>> findStations();
    //查询气象日期信息
    List<String> findStationsDate(String station);
    //findWeatherWhole
    List<Weather> findWeatherWhole(WeatherVo weatherVo);
    //获取任一小时的分钟气象信息
    List<Weather> findHourWeather(String station, String dateHour);

    List<WeatherHourVo> findDayHour(String station, String date);

    List<WeatherHourVo> findStatDayRange(String station, String[] countArr,String start_date);

    List<Weather> findCorrelation(String station, String start_date, String end_date);
}
